import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.WebDriverWait;

public class EditAnAction {
    static WebDriver driver;
    static WebDriverWait wait;
    @BeforeClass

    public static void startFFDriverTest(){

        driver = FireFoxDriver.createFireFoxDriver();
        wait = new WebDriverWait(driver,10);
        Login loginPage = new Login(driver);
        loginPage.typeUserName();
        loginPage.typePassword();
        loginPage.clickSignIn(wait, PageVariableValues.homePageTitle);
    }

    @Test
    public void AddAction(){
        WebElement addActionForm = driver.findElement(By.id("todo_new_action_container"));
        WebElement actionDescription = addActionForm.findElement(By.id("todo_description"));
        actionDescription.sendKeys("Action1.4");

    }

    @AfterClass
    public static void cleanUpTest(){
        driver.close();
        driver.quit();
    }
}
